import request from '@/common/request.js'	

/**
 * 开票
 */
// 开票申请列表
export function invoiceList(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/invoiceList",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 开票详情
export function invoiceInfo(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/invoiceDetail",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 开票申请
export function invoiceApply(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/invoiceApply",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 开票取消
export function invoiceCancel(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/invoiceCancel",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}